package com.scf.fruit.user;

import com.alibaba.fastjson.annotation.JSONField;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author : 孙超飞
 * @title :钱包
 * @description :
 * @date : 2018-04-18 14:39
 */
@Entity
@Table(name = "user_wallet")
public class UserWalletDto {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Long id;
    /**
     * 余额
     */
    @Column(name = "balance")
    private Float balance;
    /**
     * 积分
     */
    @Column(name = "point")
    private Integer point;
    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 状态
     */
    @Column(name = "status")
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Float getBalance() {
        return balance;
    }

    public void setBalance(Float balance) {
        this.balance = balance;
    }

    public Integer getPoint() {
        return point;
    }

    public void setPoint(Integer point) {
        this.point = point;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
